package Buffer;

public class SDemo {
    private String name;
    private int MCourse;
    private int CCourse;
    private int ECourse;

    public SDemo(String name, int MCourse, int CCourse, int ECourse) {
        this.name = name;
        this.MCourse = MCourse;
        this.CCourse = CCourse;
        this.ECourse = ECourse;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getMCourse() {
        return MCourse;
    }

    public void setMCourse(int MCourse) {
        this.MCourse = MCourse;
    }

    public int getCCourse() {
        return CCourse;
    }

    public void setCCourse(int CCourse) {
        this.CCourse = CCourse;
    }

    public int getECourse() {
        return ECourse;
    }

    public void setECourse(int ECourse) {
        this.ECourse = ECourse;
    }

    public int getSum(){return this.CCourse+this.ECourse+this.MCourse;}
}
